This article provides expert answers to frequently asked questions (FAQs) for the following Ditto topics:
How do Ditto apps sync without internet connectivity?
What are the device and operating system requirements?
How does Ditto still enable offline data?
Can I sync data with devices that I am not directly connected to in the mesh?
Can multiple apps share a database?
Can I explicitly control the start and end of synchronization?
startSync()
and stopSync()
methods that will enable and disable network sync.Will the app sync in the background?
Does the sync happen even when the device is locked?
Is there a limit to the amount of data?
What happens if data is changed by multiple devices at the same time?
Is there a transaction feature?
Can you track the connection status of all devices in real time?
ditto.presence
SDK function.Can I detect a loss of connection?
ditto.presence.observe()
callback.Can I specify the connection type?
How can I show how many peers are connected?
ditto.presence
functionality provided by the SDK to keep track of which devices are online. Therefore you’ll be able to determine which devices are offline.If you don’t maintain a separate list of devices in your team then the best you can currently do is to keep track of all devices that Ditto sees, again by making use of the ditto.presence
API. You can then use this list of all known devices to keep track of which of those are online/offline at any given moment.How can I profile Ditto-related network traffic and data usage?
Can I use both connectivity types (Device-Device and Device-Server-Device) at the same time?
Can Android and iOS devices sync with each other over WiFi Direct using Ditto?
How do I set up authentication?
Is the data in the database encrypted?
How can I limit the devices the SDK can connect to?
Is the communication encrypted?
How can I control what data can or cannot be synced?
Can other apps with the Ditto SDK intercept the communication?
How does the certificate work?
What is the difference between Bluetooth Classic and Bluetooth Low Energy?
Does the SDK require Bluetooth pairing?
How does the sync work if devices have different BLE versions?
What is the range for Bluetooth connections?
Does the sync still work if the smartphone is connected to audio devices via Bluetooth?
How much does the SDK consume battery?
Does the iOS Low Power Mode affect the performance?
Does having a device in Airplane Mode affect the performance?
How fast is the sync?
How much data can Ditto hold? How big can a Ditto document be?
Are there any limits to the number of collections?
How much memory does Ditto consume during high load times?
Is there backward compatibility when upgrading?
What is the difference between experimental, rc, and preview releases?
How fast does the SDK follow the iOS version update?